<?php /*
	EZ-Shop, Starter E-Commerce Platform
    Copyright (C) 2009  David Hinchliffe - FC Software Ltd

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/ ?>
<?php 
if ($donotinclude!=1) {
	include("system/config.inc.php"); 
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo PAGETITLE;?></title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]>
<link rel="stylesheet" media="all" type="text/css" href="css/flyout_ie.css" />
<![endif]-->
<script language="javascript" src="js/hideshow.js"></script>
<script language="javascript" src="js/popup.js"></script>
<script language="javascript" type="text/javascript">
function check()
{
	var cond=true;
	if(document.cart.select.value=='0')
	{
		alert("Please Select Option.");
		if(cond==true)
		{
			document.cart.select.focus();
		}
		cond=false;
		return false;
	}
	else
	{
		document.cart.submit();
	}
	
}


function showhide(id){

if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == "none"){
obj.style.display = "";

} 
}
}	
</script>
<script type="text/javascript">
function check(){

	var cond=true;
	if(document.form1.mail_address.value.length==0){
		alert("Please enter your E-Mail address.");
		if(cond==true){
			document.form1.mail_address.focus();
		}
		cond=false;
		return false;
	}	
	else if(!checkMail(document.form1.mail_address.value)){
		alert("Email must contain a Valid E-Mail address.\n");
		if(cond==true){
			document.form1.mail_address.focus();
		}
		cond=false;
		return false;
	}
	
	function checkMail(mail_address){
	var x = mail_address;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(x)){
	 return true;
	}
	else {
	  return false;
	}
}
}
</script>
</head>